package com.bianmaba.utils;


import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
public class HttpClientUtilTester {
    @Test
    public void sendHttpGet() {
        String text = HttpRequestUtil.sendHttpGet("http://www.baidu.com");
        Assert.assertNotNull(text);
    }

    @Test
    public void sendHttpsGet() {
        String text = HttpRequestUtil.sendHttpsGet("http://www.baidu.com");
        Assert.assertNotNull(text);
    }
}
